package com.yf.ability.upload.providers.oss.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
* <p>
* OSS服务器授权信息返回
* </p>
*
* @author 聪明笨狗
* @since 2020-12-17 11:28
*/
@Data
@ApiModel(value="OSS服务器授权信息返回", description="OSS服务器授权信息返回")
public class OssTokenDTO implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "accessId", required=true)
    private String accessId;

    @ApiModelProperty(value = "policy", required=true)
    private String policy;

    @ApiModelProperty(value = "signature", required=true)
    private String signature;

    @ApiModelProperty(value = "上传目录", required=true)
    private String dir;

    @ApiModelProperty(value = "上传地址", required=true)
    private String host;

    @ApiModelProperty(value = "到期时间戳", required=true)
    private Long expire;

    @ApiModelProperty(value = "访问URL/CND地址", required=true)
    private String url;

}
